package com.shirt.factory;

import com.factory.AbstractClothFactory;
import com.pant.iface.Pant;
import com.shirt.iface.Shirt;
import com.shirt.iface.impl.Jacket;
import com.shirt.iface.impl.TShirt;

public class ShirtFactory extends AbstractClothFactory {

    public Shirt getShirt(String shirtEnumName) {
        if ( shirtEnumName == null )
            return null;
        if ( shirtEnumName.equalsIgnoreCase("T-SHIRT") )
            return new TShirt();
        if ( shirtEnumName.equalsIgnoreCase("JACKET") )
            return new Jacket();
        return null;
    }

    @Override
    public Pant getPant(String pantName) {
        return null;
    }

}
